package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.THealMapper;
import com.ruoyi.system.domain.THeal;
import com.ruoyi.system.service.ITHealService;

/**
 * healService业务层处理
 * 
 * @author SJQ
 * @date 2024-10-30
 */
@Service
public class THealServiceImpl implements ITHealService 
{
    @Autowired
    private THealMapper tHealMapper;

    /**
     * 查询heal
     * 
     * @param id heal主键
     * @return heal
     */
    @Override
    public THeal selectTHealById(Long id)
    {
        return tHealMapper.selectTHealById(id);
    }

    /**
     * 查询heal列表
     * 
     * @param tHeal heal
     * @return heal
     */
    @Override
    public List<THeal> selectTHealList(THeal tHeal)
    {
        return tHealMapper.selectTHealList(tHeal);
    }

    /**
     * 新增heal
     * 
     * @param tHeal heal
     * @return 结果
     */
    @Override
    public int insertTHeal(THeal tHeal)
    {
        return tHealMapper.insertTHeal(tHeal);
    }

    /**
     * 修改heal
     * 
     * @param tHeal heal
     * @return 结果
     */
    @Override
    public int updateTHeal(THeal tHeal)
    {
        return tHealMapper.updateTHeal(tHeal);
    }

    /**
     * 批量删除heal
     * 
     * @param ids 需要删除的heal主键
     * @return 结果
     */
    @Override
    public int deleteTHealByIds(Long[] ids)
    {
        return tHealMapper.deleteTHealByIds(ids);
    }

    /**
     * 删除heal信息
     * 
     * @param id heal主键
     * @return 结果
     */
    @Override
    public int deleteTHealById(Long id)
    {
        return tHealMapper.deleteTHealById(id);
    }
}
